package com.fantastic.service.zjs;

import com.fantastic.model.pojo.zjs.Coupons;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * @author: rxx
 * @since: 2024/6/3 08:42
 * @description:    优惠券信息表service接口
 */

public interface CouponsService {
    /**
     * 查询优惠券信息
     *
     * @param coupons
     * @return
     */
    List<Coupons> listCoupons(Coupons coupons);

    /**
     * 查询单个优惠券信息
     *
     * @param couponId
     * @return
     */
    Coupons getCoupons(Integer couponId);

    /**
     * 添加优惠券信息
     *
     * @param filePicture
     * @param coupons
     * @return
     */
    Integer insertCoupons(MultipartFile filePicture, Coupons coupons);

    /**
     * 修改优惠券信息
     *
     * @param filePicture
     * @param coupons
     * @return
     */
    Integer updateCoupons(MultipartFile filePicture, Coupons coupons);

    /**
     * 删除优惠券信息
     *
     * @param couponId
     * @return
     */
    Integer deleteCoupons(Integer couponId);
}
